import Vue from 'vue'
import Router from 'vue-router'
import {loginPermission} from './permission'
Vue.use(Router)


const router = new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes:[
    {
      path: '/login',
      name:'login',
      component: () => import( /*webpackChunkName:'login'*/ '@/views/user/UserLayout.vue')
    }, 
  ]
})

router.beforeEach(loginPermission.bind(router))

export default router
